Platform Explorer / Nuxeo Platform 2021.7

Extension point outputFormat

Documentation

Extension allowing to register a output formats for rendered template. If no chainId is specified, the ConvertBlob operation will be called with the mime-type as parameter.

    <outputFormat id="doc" label="DOC" mimetype="application/msword"/>
    <outputFormat chainId="deckJs2PDF" id="deckJsToPDF"
        label="PDF (from DeckJS)" mimetype="application/pdf"/>

Contribution Descriptors

  • Class: org.nuxeo.template.api.descriptor.OutputFormatDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-template-rendering-core-2021.7.15.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="outputFormat" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>Adds outputFormat for the following mime type
          <ul>
            <li>pdf</li>
            <li>odt</li>
            <li>doc</li>
            <li>docx</li>
          </ul>
        </documentation>
    
        <outputFormat id="pdf" label="PDF" mimetype="application/pdf"/>
        <outputFormat id="odt" label="ODT" mimetype="application/vnd.oasis.opendocument.text"/>
        <outputFormat id="doc" label="DOC" mimetype="application/msword"/>
        <outputFormat id="docx" label="DOCX" mimetype="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
      </extension>